import java.util.Scanner;
public class Task17 {

	public static boolean isGrowing(int[] arr, int size){
		boolean flag = true;
		for(int i=0;i<size - 1;i++){
			if(arr[i] >= arr[i+1])
				flag = false;
		}
		
		return flag;
		
	}
	
	
	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int [] array = new int[5];
		int sum = 0;
		for(int i=0;i<5;i++){
			array[i] = sc.nextInt();
			sum += array[i];
		}
		
		if(isGrowing(array, 5)){
			System.out.println("The array is growing");
		}else {
			while (!isGrowing(array, 5)){
				sum = 0;
				for (int i=0;i<5;i++){
					array[i] = sc.nextInt();         //Ako se ima predvid poslednata predi 
					sum += array[i];				 //rastqshtata razmenqme tezi 2 reda
				}
			}
		}
		System.out.println("The sum is: " + sum);
		sc.close();

	}

}
